<?php
/**
 * Astronomical Algorithms UI
 *
 * @author    Michel Corne <mcorne@yahoo.com>
 * @copyright 2012 Michel Corne
 * @license   http://opensource.org/licenses/mit-license.php MIT
 */

/*
 * Displays the layout
 */
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Astronomical Algorithms</title>
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="<?="$_base_url";?>/ui/interface.css" />
  </head>

  <body>
    <?php require 'top.phtml';?>

    <div>
      <?php if (isset($_image)):?>
        <img class="image" src="<?="$_base_url";?>/img/<?=$_image;?>" />
      <?php endif;?>

      <?php require "$_action.phtml";?>
    </div>

    <?php require 'bottom.phtml';?>

  </body>

</html>
